﻿Public Class Search
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btn_Search_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn_Search.Click
        SqlDataSource1.SelectCommand = "SELECT * FROM [HotelMainTable] where HotelName like '%" & TB_Search.Text & "%'"
        SqlDataSource1.DataBind()

    End Sub

    Protected Function getstar(ByVal stars As Integer)
        Dim retval As String = ""
        For i = 1 To stars
            retval = retval + "*"
        Next
        Return retval

    End Function



End Class